package com.zhuzhe.blog.article.responseVo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.zhuzhe.blog.category.responseVo.LabellistVo;
import java.util.Date;
import java.util.List;

/**
 * @description
 * @author: u53
 * @create: 2020-10-15 15:02
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "ArticleVo 文章详情对象", description = "文章详情对象")
public class ArticleVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "发布者用户id")
    private String userId;

    @ApiModelProperty(value = "发布者用户昵称")
    private String nickName;

    @ApiModelProperty(value = "发布者头像url")
    private String userImage;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章简介")
    private String summary;

    @ApiModelProperty(value = "文章主图地址")
    private String imageUrl;

    @ApiModelProperty(value = "md主体内容")
    private String mdContent;

    @ApiModelProperty(value = "html主体内容")
    private String htmlContent;

    @ApiModelProperty(value = "浏览次数")
    private Integer viewCount;

    @ApiModelProperty(value = "点赞数")
    private Integer thumhup;

    @ApiModelProperty(value = "0: 已删除, 1:未审核，2:审核通过，3：审核未通过")
    private Integer status;

    @ApiModelProperty(value = "0：不公开，1：公开")
    private Integer ispublic;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /**
     * 标签集合
     */
    @ApiModelProperty(value = "标签集合")
    private List<LabellistVo> labelList;

    /**
     * 标签Ids集合
     */
    @ApiModelProperty(value = "标签Ids集合")
    private List<String> labelIds;

    /**
     * 查看详情时候展示是否点赞
     */
    @ApiModelProperty(value = "查看详情时候展示是否点赞")
    private Boolean thumhupBool;

}
